#!/usr/bin/env python
#

# Uninstall Django 0.96.
#for k in [k for k in sys.modules if k.startswith('django')]:
#  del sys.modules[k]

from google.appengine.dist import use_library
use_library('django', '1.0')

from django.core.handlers import wsgi
from google.appengine.ext.webapp import util

import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

def main():
  application = wsgi.WSGIHandler()
  util.run_wsgi_app(application)

if __name__ == '__main__':
  main()
